package cn.flying.cloud.task.core.quartz.scheduler;//package cn.flying.cloud.task.quartz.scheduler;
//
//import java.lang.reflect.Method;
//
//import org.quartz.DisallowConcurrentExecution;
//import org.quartz.JobExecutionContext;
//import org.quartz.PersistJobDataAfterExecution;
//
//import cn.flying.cloud.base.common.utils.Ft;
//import cn.flying.cloud.task.core.manager.domain.SysJobInfo;
//import cn.flying.cloud.task.core.quartz.job.AbstractScheduleQuartzJob;
//
///**
// *  串行执行处理器
// * @author: admin
// * @date: 2024年01月29日 15:04
// * @version: 1.0
// */
//@DisallowConcurrentExecution
//@PersistJobDataAfterExecution
//public class ScheduleQuartzSingleExecution extends AbstractScheduleQuartzJob {
//
//    /**
//     * 执行任务
//     * @param context
//     * @param jobInfo
//     * @throws Exception
//     */
//    @Override
//    protected void doExecute(JobExecutionContext context, SysJobInfo jobInfo) throws Exception {
//        String jobTarget = jobInfo.getJobTarget();
//        Object bean = Ft.spring.getBean(jobTarget);
//        Method method = bean.getClass().getDeclaredMethod("doExecute", JobExecutionContext.class, SysJobInfo.class);
//        method.invoke(bean, context, jobInfo);
//    }
//}